package com.yuyou.fn.activity.service;

import com.github.wens.mybatisplus.plugins.Page;
import com.yuyou.fn.activity.entity.ActivityCampus;
import com.github.wens.framework.service.ISuperService;
import com.yuyou.fn.activity.vo.ActivityCampusDetailVo;
import com.yuyou.fn.activity.vo.ActivityCampusQueryVo;
import com.yuyou.fn.activity.vo.ActivityCampusSaveVo;
import com.yuyou.fn.platform.permission.DataPermission;

import java.util.Date;
import java.util.List;

/**
 *
 * ActivityCampus 表数据服务层接口
 *
 */
public interface IActivityCampusService extends ISuperService<ActivityCampus,Long> {

    void saveActivityCampus(ActivityCampusSaveVo activityCampusSaveVo);

    void deleteActivityCampusByActivityId(long activityId);


    List<ActivityCampus> findActivityCampusList(long activityId);

    List<ActivityCampusDetailVo> findActivityCampusListByActivityId(long activityId);

    List<ActivityCampusDetailVo> findCanRegActivityCampusByActivityId(long activityId);

    void updateActivityNameAndStartDateByActivityId(long activityId, String activityName, Date activityStartDate );

    Page<ActivityCampusDetailVo> findActivityTargetPageByQueryVo(DataPermission dataPermission, ActivityCampusQueryVo activityCampusQueryVo, int pageNo, int pageSize);
}